First setup an unprivileged Ubuntu container with Plex Media Server installed. Inside the container take note of the id of the plex
group.
# Your Plex group's ID may be different
$ getent group plex | cut -d : -f3
998
First of all, open the vscode editor and check the commit version from "About Visual Studio Code" tab, it should be something like 2b35e1e6d88f1ce073683991d1eff5284a32690f
.
Save the bellow script and pass it the commit code
to run will do the job.
#!/bin/bash
code_server=~/vscode-server-linux-x64.tar.gz
curl -L https://update.code.visualstudio.com/commit:${@}/server-linux-x64/stable > $code_server
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) |
// PARSE LOCAL OPML FILE IN OS X 10.10 JXA USING $.NSXMLDocument | |
// Ver 2.0 Parse all attributes (ver 1 just parsed text) | |
function run() { | |
var app = Application.currentApplication(); | |
app.includeStandardAdditions = true; | |
function readTextFromFile(strPath) { | |
return $.NSString.stringWithContentsOfFile(strPath); | |
} | |
If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:
echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes
I suggest you edit your /etc/rc.local
file to make this change persistant across reboots.
sudo nano /etc/rc.local
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkey
for a Primary Key constraint;key
for a Unique constraint;excl
for an Exclusion constraint;idx
for any other kind of index;
#!/bin/bash | |
# Convert Lingvo DSL, Babylon BGL, Stardict, ZIM, etc dictionaries to MDict MDX (see input formats supported by https://github.com/ilius/pyglossary) | |
# | |
# Dependencies: | |
# python3, sqlite3, pyglossary, mdict-utils | |
# optional dependency: dictzip (for unpacking .dz files) | |
# | |
# Install all dependencies with: | |
# pip3 install pyglossary mdict-utils lxml polib PyYAML beautifulsoup4 html5lib PyICU libzim>=1.0 python-lzo prompt_toolkit |
# This supports merging as many adapters as you want. | |
# python merge_adapters.py --base_model_name_or_path <base_model> --peft_model_paths <adapter1> <adapter2> <adapter3> --output_dir <merged_model> | |
from transformers import AutoModelForCausalLM, AutoTokenizer | |
from peft import PeftModel | |
import torch | |
import os | |
import argparse |
[user] | |
name = project operations | |
email = support@igedevteam.onmicrosoft.com | |
[core] | |
editor = \"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"-n\" | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol,space-before-tab | |
tabwidth=4 | |
excludesfile = ~/.gitignore-global | |
symlinks = false |